]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: emit systemd message for any session except gdm and initial-setup
authorVadim Rutkovsky <vrutkovs@redhat.com>
Fri, 9 May 2014 20:31:53 +0000 (22:31 +0200)
committerVadim Rutkovsky <vrutkovs@redhat.com>
Fri, 9 May 2014 21:35:57 +0000 (23:35 +0200)
js/ui/main.js

index b59646319903f466a5367c86fb0386bde60971aa..a21af899f8b90436146fd4c1021a759c859818ec 100644 (file)
@@ -212,7 +212,9 @@ function _initializeUI() {
                               if (screenShield) {
                                   screenShield.lockIfWasLocked();
                               }
-                              if (LoginManager.haveSystemd() && sessionMode.currentMode === 'user') {
+                              if (LoginManager.haveSystemd() &&
+                                  sessionMode.currentMode != 'gdm' &&
+                                  sessionMode.currentMode != 'initial-setup') {
                                   // Do not import globally to not depend
                                   // on systemd on non-systemd systems.
                                   let GSystem = imports.gi.GSystem;